package com.hualan.sfzy.mapper;


import com.hualan.sfzy.model.entity.Answer;
import com.hualan.sfzy.model.vo.AnswerCount;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author Ahao
 * @description 针对表【answer】的数据库操作Mapper
 * @createDate 2025-07-04 20:31:04
 * @Entity com.hualan.domain.Answer
 */
@Mapper
public interface AnswerMapper extends BaseMapper<Answer> {

    /*查询全部(多表) 带条件*/
    List<Answer> selectDuo(Answer entity);

    /*根据id查询单个(多表)*/
    Answer selectByIdDuo(@Param("id") Integer id);
//    根据用户id查看回答
    List<Answer> selectByuserId(Integer userId);


}
